package com.example.shishaolong.warehousemanager.entity;

/**
 * 管理员实体类
 * @author 时少龙
 */
public class AdminEntity {

    private int id;
    private String name;
    private String password;
    private int sex;
    private int  level;
    private String addDate;
    private String modifyDate;
    private boolean checked;

    public AdminEntity(int id, String name, String password, int sex, int level, String addDate, String modifyDate, boolean checked) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.sex = sex;
        this.level = level;
        this.addDate = addDate;
        this.modifyDate = modifyDate;
        this.checked = checked;
    }

    public AdminEntity() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public String getAddDate() {
        return addDate;
    }

    public void setAddDate(String addDate) {
        this.addDate = addDate;
    }

    public String getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(String modifyDate) {
        this.modifyDate = modifyDate;
    }

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    @Override
    public String toString() {
        return "AdminEntity{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", sex=" + sex +
                ", level=" + level +
                ", addDate='" + addDate + '\'' +
                ", modifyDate='" + modifyDate + '\'' +
                ", checked=" + checked +
                '}';
    }
}
